package com.school.campus.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.school.campus.mapper.TeachingResearchOfficeMapper;
import com.school.campus.domain.TeachingResearchOffice;
import com.school.campus.service.ITeachingResearchOfficeService;

/**
 * 教研室信息Service业务层处理
 * 
 * @author wwj
 * @date 2025-10-31
 */
@Service
public class TeachingResearchOfficeServiceImpl implements ITeachingResearchOfficeService 
{
    @Autowired
    private TeachingResearchOfficeMapper teachingResearchOfficeMapper;

    /**
     * 查询教研室信息
     * 
     * @param id 教研室信息主键
     * @return 教研室信息
     */
    @Override
    public TeachingResearchOffice selectTeachingResearchOfficeById(Long id)
    {
        return teachingResearchOfficeMapper.selectTeachingResearchOfficeById(id);
    }

    /**
     * 查询教研室信息列表
     * 
     * @param teachingResearchOffice 教研室信息
     * @return 教研室信息
     */
    @Override
    public List<TeachingResearchOffice> selectTeachingResearchOfficeList(TeachingResearchOffice teachingResearchOffice)
    {
        return teachingResearchOfficeMapper.selectTeachingResearchOfficeList(teachingResearchOffice);
    }

    /**
     * 新增教研室信息
     * 
     * @param teachingResearchOffice 教研室信息
     * @return 结果
     */
    @Override
    public int insertTeachingResearchOffice(TeachingResearchOffice teachingResearchOffice)
    {
        return teachingResearchOfficeMapper.insertTeachingResearchOffice(teachingResearchOffice);
    }

    /**
     * 修改教研室信息
     * 
     * @param teachingResearchOffice 教研室信息
     * @return 结果
     */
    @Override
    public int updateTeachingResearchOffice(TeachingResearchOffice teachingResearchOffice)
    {
        return teachingResearchOfficeMapper.updateTeachingResearchOffice(teachingResearchOffice);
    }

    /**
     * 批量删除教研室信息
     * 
     * @param ids 需要删除的教研室信息主键
     * @return 结果
     */
    @Override
    public int deleteTeachingResearchOfficeByIds(Long[] ids)
    {
        return teachingResearchOfficeMapper.deleteTeachingResearchOfficeByIds(ids);
    }

    /**
     * 删除教研室信息信息
     * 
     * @param id 教研室信息主键
     * @return 结果
     */
    @Override
    public int deleteTeachingResearchOfficeById(Long id)
    {
        return teachingResearchOfficeMapper.deleteTeachingResearchOfficeById(id);
    }
}
